package com.guigu.tms.manager.feign.wj;

import com.github.pagehelper.PageInfo;
import com.guigu.tms.commons.entity.base.BaseTruckType;
import com.guigu.tms.commons.entity.base.PdGoodsType;
import com.guigu.tms.commons.entity.base.PdTruckType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@FeignClient(value = "tms-base",path = "/base/pdTruckType", contextId = "LizzApi10")
public interface TruckTypeFeignClient {

    @GetMapping("/ShowPdTruckType")
    List<PdTruckType> ShowPdTruckType();

    @PostMapping("/BaseTruckTypeList")
    PageInfo<BaseTruckType> BaseTruckTypeList(@RequestBody Map<String, String> map);

    @GetMapping("/ShowPdGoodsType")
    List<PdGoodsType> ShowPdGoodsType();

    @PostMapping("/AddTruckType")
    int AddTruckType(@RequestBody PdTruckType pdTruckType);

    @DeleteMapping("/DeleteTruckTypeById")
    int DeleteTruckTypeById(@RequestParam int truckTypeId);

    @PutMapping("/UpdateTruckType")
    int UpdateTruckType(@RequestBody PdTruckType pdTruckType);

    @DeleteMapping("/DeleteGoodsTruck")
    int DeleteGoodsTruck(@RequestParam int truckTypeId);

    }
